from selenium.webdriver.common.by import By
from  tests import  BlogEdit
from tests import BlogLogin
from tests import BlogList
from common.Utills import BlogDriver
from  tests import BlogDetail
if __name__ == "__main__":
    #正确的账号和错误的密码
    BlogLogin.BlogLogin().LoginFailTest1()
    # 错误的账号和正确的密码
    BlogLogin.BlogLogin().LoginFailTest2()
    # 错误的账号和错误的密码
    BlogLogin.BlogLogin().LoginFailTest3()
    # 成功登录的测试用例
    BlogLogin.BlogLogin().LoginSucTest()
    # 测试首页（登录情况下）
    BlogList.BlogList().ListTestByLogin()
    # 登录情况下博客详情页测试
    BlogDetail.BlogDetail().DetailTestByLogin()
    #发布博客
    BlogEdit.BlogEdit().EditSucTestByLogin()
    #提出浏览器
    BlogDriver.driver.quit()


